// ==========================================================================
// Demo
// ==========================================================================

// This is the function that will start your app running.  The default
// implementation will load any fixtures you have created then instantiate
// your controllers and awake the elements on your page.
//
// As you develop your application you will probably want to override this.
// See comments for some pointers on what to do next.
//
require('core') ;


  
function main() {

  // Step 1: Load Your Model Data
  // The default code here will load the fixtures you have defined.
  // Comment out the preload line and add something to refresh from the server
  // when you are ready to pull data from your server.
 //Demo.server.preload(Demo.FIXTURES) ;

  SC.page.awake() ;
  
    Demo.friendController.set('content', Demo.Friend.findAll());

} ;
